﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using MyLib;
using System.Web;

using Portal.Entity;
using Portal.Interface;

namespace Portal.Logic
{
    public class MockOrgLogic :IOrg
    {
        public virtual List<ResourceEntity> GetOrgList()
        {
            throw new NotImplementedException();
        }

        public virtual List<ResourceEntity> FindOrg(string orgName)
        {
            throw new NotImplementedException();
        }

        public virtual List<UserEntity> GetUserList(string orgId)
        {
            throw new NotImplementedException();
        }

        public virtual List<UserEntity> GetUserList(string orgId, string jobFunction)
        {
            throw new NotImplementedException();
        }

        public virtual List<UserEntity> FindUser(string loginName, string name)
        {
            throw new NotImplementedException();
        }

        public virtual bool CheckUser(string loginName, string password)
        {
            throw new NotImplementedException();
        }

        public virtual List<string> GetDomains()
        {
            string domains = ConfigurationManager.AppSettings["Domains"];
            string[] strs = domains.Split(',');
            List<string> list = new List<string>();
            list.AddRange(strs);
            return list;
        }

        public UserEntity GetUserEntity(string loginName)
        {
            UserEntity entity = new UserEntity();
            entity.CNName = loginName;
            entity.ENName = loginName;
            return entity;
        }
    }
}
